<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../resources/style.css">
<title>Registration result</title>
</head>
<body>
	<c:if test="${isRegistered=='false'}">
		<h3>Registration failed...</h3>
		A user with a username "${username}" already exists.
		<br>
		Please, choose another username.
		<br>
		<br>
		Back to the <a href="../register.jsp" >registration page</a>
		<br>
		<br>
		Back to the <a href="../login.jsp" >login page</a>.
	</c:if>
	<c:if test="${isRegistered=='true'}">
		<h3>Registration is successful!</h3>
		<br>
		Your username is "${username}".
		<br>
		Your password is "${password}".
		<br>
		<br>
		Please, remember your password! It would be impossible to restore password, if it is lost.
		<br>
		You can now login at the <a href="../login.jsp" >login page</a>.
	</c:if>
	
</body>
</html>